Skip to content

Conversation

@screem02
Copy link
Contributor

@screem02 screem02 commented Jan 5, 2026

Fixes visual laggy appearance of level animation in OSD when using touchpad gesture volume control, from #12760.

Need

The previous behavior forces 100ms LEVEL_ANIMATION_TIME transition for all level changes, even minuscule ones, causes extreme lag when using gestures. (addressable by throttling alone for now)

Fix

  • Throttled osdWindowManager.show() call in similar fashion as in zoom control class, prevent event flooding.

  • Initially made other changes, but realised they were not really necessary and felt bloaty, throttling works fine.

Thanks for reviewing.

Closes #12760

Fix jerky level animation for small value changes, if level value changes by less than 0.4 do it using new fast constant, set it to zero for now.

the 0.4 is kind of hardcoded as the I wanted the brightness (that jumps by 0.4 on my system) to have the 100ms level animation and all below it 0ms.
throttling OSD manager show function calls to prevent event flooding when using gestures for volume control, which too was contributing to some choppiness.
Updates Clutter animation to linear to make is smooth and lower burstiness of animation.
@clefebvre clefebvre changed the title Fix OSD level animation lag when using gesture volume control [Next] Fix OSD level animation lag when using gesture volume control Jan 7, 2026
@screem02
Copy link
Contributor Author

screem02 commented Jan 7, 2026

hey @mtwebster , sorry for the bother, but c8cb4ec is failing on mint22 build but the later commit is passing, also since I'm new can you check if the code is following good standards.
Thank you!

@screem02 screem02 marked this pull request as ready for review January 7, 2026 19:53
@screem02 screem02 closed this Jan 9, 2026
@mtwebster
Copy link
Member

Hi sorry I missed your comment, don't worry about those builds - they're meaningless for commits like this that don't touch compiled code, and there are many reasons unrelated to a pull request that can cause failures as well.

@screem02 screem02 reopened this Jan 9, 2026
@screem02
Copy link
Contributor Author

screem02 commented Jan 9, 2026

I made a typo in my code and crashed my ui, thought something was wrong with the code so closed the pull request and checked the code, no issue here.
We can add some more good looking ui stuff but I removed the extra funcs, vars and conts I added, they felt bloaty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Volume OSD is very laggy

2 participants